SDEF
//  Splitter Bug def file, by Boon, Jan 99
//
// Copyright (C) 1998 by Ritual Entertainment, Inc.
// All rights reserved.
// And by 2015, of course.
//
// This source may not be distributed and/or modified without
// expressly written permission by Ritual Entertainment, Inc.
// Or by 2015, of course.
//
// DESCRIPTION:
// This is a model definition file.  It is to be used in conjunction with Sin.
// MODEL AUTHOR:
// Boon & Ken
//
// SINED SECTION
//
/*SINED Monster_Bug (1 .5 0) (0 0 0) (0 0 0)
Parasite bug from Split mutant
*/
//

// Model Commands
path models/bug
//scale 1

// Base Model
bug_base.sbm

// Skins
normal		bug_05b.tga
damage		bug_05bdam.tga

// Normal Animations
walk1			bug_walk.sam
melee1			bug_born.sam
jump			bug_jump.sam
land			bug_jump.sam
run1			bug_run.sam

// Pain Location Based Animations
pain1			bug_pain_a.sam

// Death Location Based Animations
death1		bug_dead.sam

// Optional Animations

// Scripted Animations
born			bug_born.sam

// Id And Group Definitions

//
// INITIALIZATION SECTION
//
!init:

//
// SERVER Initialization Commands
//

// Class Setup
server classname actor
server setsize "-24 -24 0" "24 24 20"
//server crouchsize "-24 -24 0" "24 24 20"
server script global/bug.scr
server health 100
server ifskill 0 health 75
server meleerange 50
server meleedamage 50
server painthreshold 10
server turnspeed 90

// The bug used to spawn human gibs - not very realistic...
server flags -die_gibs

// Sound Aliases
server aliascache snd_sight1     "monsters/bug/attk1.wav" 1
server aliascache snd_idle1      "monsters/bug/idle1.wav" 1
server aliascache snd_idle2      "monsters/bug/idle2.wav" 1
server aliascache snd_pursuit1   "monsters/bug/purs1.wav" 1

//
// CLIENT Initialization Commands
//

// Sound Aliases
client aliascache snd_attack1    "monsters/bug/attk1.wav" 1
client aliascache snd_death1     "monsters/bug/death1.wav" 1
client aliascache snd_pain1      "monsters/bug/pain1.wav" 1
client aliascache snd_pain2      "monsters/bug/pain2.wav" 1
//client aliascache snd_eat1       "monsters/???.wav" 1
client aliascache snd_partfall1  "impact/bodyfall/med1.wav" 1
client aliascache snd_partfall2  "impact/bodyfall/med2.wav" 1
client aliascache snd_bodyfall1  "impact/bodyfall/lrg1.wav" 1
client aliascache snd_bodyfall2  "impact/bodyfall/lrg2.wav" 1

client aliascache snd_step		"monsters/bug/step.wav" 1
//client aliascache snd_step		"monsters/doggie/snap1.wav" 1
client aliascache  snd_whoosh1     "weapons/punch/whsh1.wav" 1
client aliascache snd_roar		"monsters/bug/purs1.wav" 1

//
// SHARED initialization commands
//

// Sound Aliases

//
// MAIN SECTION
//
!main:

// Normal Animations
client walk1 1 randomsound snd_step 0.25 1
server walk1 1 movementsound
client walk1 4 randomsound snd_step 0.25 1
server walk1 4 movementsound
client walk1 6 randomsound snd_step 0.25 1
server walk1 6 movementsound
client walk1 9 randomsound snd_step 0.25 1
server walk1 9 movementsound

server melee1 1 movementsound
client melee1 1 randomsound snd_attack 1 2
server melee1 7  melee
client melee1 7 randomsound snd_whoosh 1 1
client melee1 7 randomsound snd_step 1 1

client jump first randomsound snd_attack 1 2
server jump first setframe 3
server jump 6 nextframe 5

server land first setframe 7
server land 7 melee

// Pain Location Based Animations
server pain1 painsound
client pain1 first randomsound snd_pain 1 2

// Death Location Based Animations
server death1 1 deathsound
client death1 1 randomsound snd_death 1 2
//client death1 4 randomsound snd_partfall 1 4

// Crouching Pain Location Based Animations

// Crouching Death Location Based Animations

// Optional Animations

// Scripted Animations
server born first setframe 3
client born 8 randomsound snd_roar 3 2
